package com.duanjw.springboot.autoconfigurition.config;

import java.util.Map;

import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import lombok.Data;

@Data
@Component
@ConfigurationProperties(prefix = "user")
public class UserProperties {

    private Map<String, User> users;

    @Data
    static class User {
        private String username;
        private String password;
    }
}
